package main

import (
	"admin-api/common/config"
	"admin-api/pkg/db"
	"admin-api/pkg/redis"
	"fmt"
)

func main() {
	fmt.Println("hello world!")

	conf := config.Config
	fmt.Println(conf.Server.Address, conf.Server.Model)

	fmt.Println(conf.Db.Dialects, conf.Db.Host, conf.Db.Port, conf.Db.Db, conf.Db.Username, conf.Db.Password, conf.Db.Charset, conf.Db.MaxIdle, conf.Db.MaxOpen)

	db.SetupDBLink()
	redis.SetupRedisDb()

	fmt.Println(conf.Redis.Address, conf.Redis.Password)

	fmt.Println(conf.ImageSettings.UploadDir, conf.ImageSettings.ImageHost)

	fmt.Println(conf.Log.Path, conf.Log.Name, conf.Log.Model)

}
